#define _CRT_SECURE_NO_WARNINGS  1
int get_day_of_month(int y, int m)
{
	int days[] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
	int day = days[m];
	if (is_leap_year (y) && 2 == m)
	{
		day++;
	}
	return day;

}